package ru.lukyanets.transmission.client.app;

import com.google.inject.Injector;
import javafx.util.Callback;

import com.google.inject.Inject;
import com.google.inject.Singleton;

/**
 * @author slukyanets
 */
@Singleton
public final class FxControllerFactory implements Callback<Class<?>, Object> {
    /** @noinspection unused*/
    @Inject
    private Injector injector;

    @Override
    public Object call(Class<?> clazz) {
        return injector.getInstance(clazz);
    }
}
